<?php if (!defined('THINK_PATH')) exit(); /*a:1:{s:64:"E:\0419DT\newagk\public/../application/admin\view\pub\login.html";i:1526868123;}*/ ?>
<!DOCTYPE HTML>
<html>
    <head>
        <meta charset="utf-8">
        <meta name="renderer" content="webkit|ie-comp|ie-stand">
        <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
        <meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no" />
        <meta http-equiv="Cache-Control" content="no-siteapp" />
        <link rel="Bookmark" href="__ROOT__/favicon.ico" >
        <link rel="Shortcut Icon" href="__ROOT__/favicon.ico" />

        <link href="__STATIC__/h-ui/css/H-ui.min.css" rel="stylesheet" type="text/css" />
        <link href="__STATIC__/h-ui.admin/css/H-ui.login.css" rel="stylesheet" type="text/css" />
        <link href="__STATIC__/css/css.css" rel="stylesheet" type="text/css"/>
        <title>后台登录 - <?php echo \think\Config::get('site.title'); ?></title>
        <meta name="keywords" content="<?php echo \think\Config::get('site.keywords'); ?>">
        <meta name="description" content="<?php echo \think\Config::get('site.keywords'); ?>">
    </head>
    <body style="position: inherit">
        <div id="web_bg" style="position:absolute; width:100%; height:100%; z-index:-1"> 
            <img style="position:fixed;"  src="__STATIC__/images/ht_bj.jpg" height="100%" width="100%" />
        </div>
        <div class="bs-bj">
            <form class="form form-horizontal" action="<?php echo \think\Url::build('checkLogin'); ?>" method="post" id="form">
                <div class="dl-logo"><img src="__STATIC__/images/loginadmin.png"></div>
                <!--用户名-->
                <div class="dl-admin">
                    <p><img src="__STATIC__/images/User.png" style="vertical-align:top;"></p>
                    <span><input style="line-height:44px;" name="account" type="text" placeholder="帐号"  datatype="*" nullmsg="请填写帐号"></span>	
                </div>
                <!--密码-->
                <div class="dl-admin">
                    <p><img src="__STATIC__/images/Locked.png" style="vertical-align:top;"></p>
                    <span> <input style="line-height:44px;" name="password" type="password" placeholder="密码"  datatype="*" nullmsg="请填写密码"></span>	
                </div>
                <!--验证码-->
                <div class="dl-zym-z">
                    <div class="dl-yzm">
                        <p><img src="__STATIC__/images/Locked.png" style="vertical-align:top;"></p>
                        <span><input style="line-height:44px;" name="captcha"  type="text" placeholder="验证码" style="width:100px;min-width: auto" datatype="*" nullmsg="请填写验证码"></span>	
                    </div>
                    <div class="dl-yzm1">
                        <div ><img id="captcha" src="<?php echo captcha_src(); ?>" alt="验证码" title="点击刷新验证码" style="cursor:pointer;width: 98px;height: 46px"></div>
                    </div>
                </div>
                <!--登录-->
                <div class="login">
                    <input name="" type="submit" class="btn btn-success radius size-L mr-20" value="登录">
                 
                </div>
            </form>
        </div>
		
		
		
		
	
		
		
		

        <script type="text/javascript" src="__LIB__/jquery/1.9.1/jquery.min.js"></script>
        <script type="text/javascript" src="__LIB__/layer/2.4/layer.js"></script>
        <script type="text/javascript" src="__LIB__/Validform/5.3.2/Validform.min.js"></script>
        <script>
            $(function () {
                $("#captcha").click(function () {
                    $(this).attr("src", "<?php echo captcha_src(); ?>?t=" + new Date().getTime())
                });

                $("#form").Validform({
                    tiptype: 2,
                    ajaxPost: true,
                    showAllError: true,
                    callback: function (ret) {
                        if (ret.code) {
                            if (ret.msg == '验证码错误!') {
                                $("#captcha").click();
                                $("[name='captcha']").val('');
                                layer.msg(ret.msg);
                            } else {
                                layer.alert(ret.msg);
                            }
                        } else {
                            layer.msg("登录成功！");
                            location.href = '<?php echo \think\Request::instance()->get('callback')?: \think\Url::build("Index/index"); ?>';
                        }
                    }
                });
            })
        </script>
    </body>
</html>